<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: deinterleave_io.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">deinterleave_io.h</div>  </div>
</div>
<div class="contents">
<a href="deinterleave__io_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __DEINTERLEAVE_IO_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __DEINTERLEAVE_IO_H__ 1</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;<a class="code" href="sample__io_8h.html">sample_io.h</a>&quot;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;<a class="code" href="codec_8h.html">codec.h</a>&quot;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a><a class="code" href="classCDeinterleaveIO.html">00007</a> <span class="keyword">class </span><a class="code" href="classCDeinterleaveIO.html">CDeinterleaveIO</a> : <span class="keyword">public</span> <a class="code" href="classISampleIO.html">ISampleIO</a>
<a name="l00008"></a>00008 {
<a name="l00009"></a>00009 <span class="keyword">public</span>:
<a name="l00010"></a>00010         <a class="code" href="classCDeinterleaveIO.html#a6e84312ad0948b8a806a228f70612d43">CDeinterleaveIO</a>(<a class="code" href="classISampleIO.html">ISampleIO</a> *pIO);
<a name="l00011"></a>00011         <span class="keyword">virtual</span> <a class="code" href="classCDeinterleaveIO.html#a2dfd09fc77fd99718d6206e925ee43bf">~CDeinterleaveIO</a>();
<a name="l00012"></a>00012 
<a name="l00013"></a>00013         <span class="comment">/* START methods inherited by ISampleIO */</span>
<a name="l00014"></a>00014         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCDeinterleaveIO.html#af72fd92e403d64e0c5a6a1b0b6854e40">init</a>(<a class="code" href="properties__reader_8h.html#a67847fd00cb49d80dd45f61722eb9a43">CPropertiesReader</a> *pConfig);
<a name="l00015"></a>00015         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCDeinterleaveIO.html#a33a24a1699f9e0445378ae08da46176f">destroy</a>();
<a name="l00016"></a>00016 
<a name="l00017"></a>00017         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCDeinterleaveIO.html#aad5a670374b4c47ce5e81ec40eb1f033">read</a>(<span class="keywordtype">void</span>** pData, <a class="code" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&amp; pAction, <span class="keywordtype">int</span> pTimeout = 1000);
<a name="l00018"></a>00018         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCDeinterleaveIO.html#a01c9adabf1b6d32c46c26eef82db01bd">write</a>(<span class="keywordtype">void</span>* pData, <span class="keyword">const</span> <a class="code" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a>&amp; pAction, <span class="keywordtype">int</span> pLength);
<a name="l00019"></a>00019 
<a name="l00020"></a>00020         <span class="keyword">virtual</span> <a class="code" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> <a class="code" href="classCDeinterleaveIO.html#a2d0a59d26e3d29651fad5f1f60b56dd2">getStreamInfo</a>();
<a name="l00021"></a>00021         <span class="comment">/* END methods inherited by ISampleIO */</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="keyword">private</span>:
<a name="l00024"></a><a class="code" href="classCDeinterleaveIO.html#ae2ebd058fecfa724a3a0d329e8598e54">00024</a>         <a class="code" href="classISampleIO.html">ISampleIO</a> *<a class="code" href="classCDeinterleaveIO.html#ae2ebd058fecfa724a3a0d329e8598e54">mIO</a>;
<a name="l00025"></a><a class="code" href="classCDeinterleaveIO.html#a7aff7a95df7209d31a0c25481ed8aae0">00025</a>         <span class="keywordtype">void</span>* <a class="code" href="classCDeinterleaveIO.html#a7aff7a95df7209d31a0c25481ed8aae0">mReadInterleavedData</a>;
<a name="l00026"></a><a class="code" href="classCDeinterleaveIO.html#ae045fe32a42c7af553d9e88afe9cac1e">00026</a>         <span class="keywordtype">int</span> <a class="code" href="classCDeinterleaveIO.html#ae045fe32a42c7af553d9e88afe9cac1e">mReadInterleavedLength</a>;
<a name="l00027"></a><a class="code" href="classCDeinterleaveIO.html#ae5b72bdfcb2b5383ae4b0d6de5a0d854">00027</a>         <a class="code" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> <a class="code" href="classCDeinterleaveIO.html#ae5b72bdfcb2b5383ae4b0d6de5a0d854">mReadInterleavedAction</a>;
<a name="l00028"></a><a class="code" href="classCDeinterleaveIO.html#aed89b8eab5ffab72aa5775039b080fb4">00028</a>         <span class="keywordtype">char</span>* <a class="code" href="classCDeinterleaveIO.html#aed89b8eab5ffab72aa5775039b080fb4">mReadByteBuf</a>;
<a name="l00029"></a><a class="code" href="classCDeinterleaveIO.html#a3eac994c728975848e842ff853107a3d">00029</a>         <span class="keywordtype">int</span> <a class="code" href="classCDeinterleaveIO.html#a3eac994c728975848e842ff853107a3d">mReadByteCount</a>;
<a name="l00030"></a>00030 
<a name="l00031"></a><a class="code" href="classCDeinterleaveIO.html#a82a34cf8538ae934b6cab62e26fb2deb">00031</a>         <span class="keywordtype">void</span>* <a class="code" href="classCDeinterleaveIO.html#a82a34cf8538ae934b6cab62e26fb2deb">mWriteInterleavedData</a>;
<a name="l00032"></a><a class="code" href="classCDeinterleaveIO.html#a38a686e23df0808e9c687f57d1e7dae5">00032</a>         <span class="keywordtype">int</span> <a class="code" href="classCDeinterleaveIO.html#a38a686e23df0808e9c687f57d1e7dae5">mWriteInterleavedLength</a>;
<a name="l00033"></a><a class="code" href="classCDeinterleaveIO.html#a099838cf5758270e89540bc4fb973720">00033</a>         <a class="code" href="classISampleIO.html#a33f1d3778c9c332648df649a73fdb44c">EAction</a> <a class="code" href="classCDeinterleaveIO.html#a099838cf5758270e89540bc4fb973720">mWriteLastAction</a>;
<a name="l00034"></a><a class="code" href="classCDeinterleaveIO.html#a6ad98778a273c9e60e1fd81ed1268c1a">00034</a>         <span class="keywordtype">char</span>* <a class="code" href="classCDeinterleaveIO.html#a6ad98778a273c9e60e1fd81ed1268c1a">mWriteByteBuf</a>;
<a name="l00035"></a><a class="code" href="classCDeinterleaveIO.html#adb329ec1d113fb941a391133b1964f79">00035</a>         <span class="keywordtype">int</span> <a class="code" href="classCDeinterleaveIO.html#adb329ec1d113fb941a391133b1964f79">mWriteByteCount</a>;
<a name="l00036"></a>00036 
<a name="l00037"></a>00037         <a class="code" href="classCDeinterleaveIO.html#a6e84312ad0948b8a806a228f70612d43">CDeinterleaveIO</a>(<span class="keyword">const</span> <a class="code" href="classCDeinterleaveIO.html">CDeinterleaveIO</a>&amp; );
<a name="l00038"></a>00038         <a class="code" href="classCDeinterleaveIO.html">CDeinterleaveIO</a>&amp; <a class="code" href="classCDeinterleaveIO.html#aa012ab6af0150076bbe2f107f3f4da96">operator=</a>(<span class="keyword">const</span> <a class="code" href="classCDeinterleaveIO.html">CDeinterleaveIO</a>&amp; );
<a name="l00039"></a>00039 
<a name="l00040"></a>00040         <span class="keywordtype">void</span>* <a class="code" href="classCDeinterleaveIO.html#a96a45d72229c737e794e17df142d5069">getReadByteBuffer</a>(<span class="keywordtype">int</span> pByteLength);
<a name="l00041"></a>00041         <span class="keywordtype">void</span>* <a class="code" href="classCDeinterleaveIO.html#a3aa563b0d703db19df9429ba22d58e22">getWriteByteBuffer</a>(<span class="keywordtype">int</span> pByteLength);
<a name="l00042"></a>00042         <span class="keywordtype">int</span> <a class="code" href="classCDeinterleaveIO.html#ab847ba852c2ddf6df58c1abf16c0e0a7">deinterleave</a>(<span class="keywordtype">void</span>* pOutBuffer, <span class="keywordtype">int</span> pOutLength, <span class="keywordtype">void</span>* pInBuffer, <span class="keywordtype">int</span> pInLength, <span class="keywordtype">bool</span> pEmbedSamples);
<a name="l00043"></a>00043         <span class="keywordtype">int</span> <a class="code" href="classCDeinterleaveIO.html#a7e5d56c5150b7ef961e1dc153b441230">interleave</a>(<span class="keywordtype">void</span>* pOutBuffer, <span class="keywordtype">int</span> pOutLength, <span class="keywordtype">void</span>* pInBuffer, <span class="keywordtype">int</span> pInLength, <span class="keywordtype">bool</span> pEmbedSamples);
<a name="l00044"></a>00044 };
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="preprocessor">#endif </span><span class="comment">/* __DEINTERLEAVE_IO_H__ */</span>
<a name="l00047"></a>00047 
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:39 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
